package cn.wolfcode.wms.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Getter@Setter
public class Saleaccount extends BaseDomain{
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date vdate;  //业务时间
    private BigDecimal number;  //数量
    private BigDecimal costprice; //成本单价
    private BigDecimal costamount; //成本总额
    private BigDecimal saleprice; //销售价
    private BigDecimal saleamount;  //销售总额

    private Product product;
    private Employee saleman; //销售员
    private Client client; //客户
}